package com.powernobug.controller;

import com.powernobug.bean.vo.BaseRespVo;
import com.powernobug.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 肖云戈
 * @CreateTime: 2024-08-30
 * @Description:
 */
@RequestMapping("wx/goods")
@RestController
public class GoodsController {

    @Autowired
    GoodsService goodsService;

    @RequestMapping("detail")
    public BaseRespVo<Object> detail(Integer id) {
        return BaseRespVo.okList(goodsService.getGoodsDetail(id));
    }
}
